package cn.echase.ecare.yinfayun.domain.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@TableName("f_charge_standard_relate")
public class FChargeStandardRelate implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 机构id
     */
    private String tenantId;

    /**
     * 收费标准id
     */
    private String standardId;

    /**
     * 收费标准id
     */
    private String standardName;

    /**
     * 关联类型(1-房间 2-照护等级)
     */
    private Integer type;

    /**
     * 关联项id
     */
    @TableId
    private String relateId;

    /**
     * 关联项名称
     */
    private String relateName;

    /**
     * 价格
     */
    private Integer price;

    /**
     * 删除标志（0-未删除 2-已删除）
     */
    private Integer delFlag;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 修改时间
     */
    private Date updateTime;

    public FChargeStandardRelate(String relateId) {
        this.relateId = relateId;
    }

    public FChargeStandardRelate(String standardId, Integer price) {
        this.standardId = standardId;
        this.price = price;
    }

    public FChargeStandardRelate(String tenantId, String standardId, String standardName, Integer type, String relateId, String relateName, Integer price) {
        this.tenantId = tenantId;
        this.standardId = standardId;
        this.standardName = standardName;
        this.type = type;
        this.relateId = relateId;
        this.relateName = relateName;
        this.price = price;
    }
}
